package domain;

/**
 * 老师实体类
 */
public class Teacher {
    //工号，性别，学院，姓名,密码
    private String workno;
    private String sex;
    private String college;
    private String name;
    private String pwd;

    public Teacher(String workno, String sex, String college, String name, String pwd) {
        this.workno = workno;
        this.sex = sex;
        this.college = college;
        this.name = name;
        this.pwd = pwd;
    }

    public Teacher() {

    }

    public String getWorkno() {
        return workno;
    }

    public void setWorkno(String workno) {
        this.workno = workno;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "workno='" + workno + '\'' +
                ", sex='" + sex + '\'' +
                ", college='" + college + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
